{{useCss '/app-pages/css/main/index.scss'}}

<div class="full-path">
  当前位置:
  <a href='{{$Loc.current_location.pathname}}'>main</a>
  {{#each $Cache.main.folderFullPath}}
  >
  <a href="{{$Top.$Loc.current_location.pathname+'?folder='+_id}}">{{name}}</a>
  {{/each}}
</div>

<div class="list-box {{$Cache.main.list_type&&'list'||''}}">

  {{#each $Cache.main.file.list}}
  <div class="file-item">
    <div class="logo">
      {{#if type=='folder'}}
        <img src='/images/icons/folder.png' />
      {{#else}}
        <img src="{{filetype=='image'&&('http://127.0.0.1:2009'+path)||('/images/icons/'+filetype+'.png')}}" />
      {{/if}}
    </div>
    <div class="content">
      {{#if type=='folder'}}
      <div class="name"><a href="{{$Top.$Loc.current_location.pathname+'?folder='+_id}}">{{name}}</a></div>
      {{#else}}
      <div class="name"><a href="http://127.0.0.1:2009/file/download/{{_id}}">{{name}}</a></div>
      {{/if}}
      <div class="time">{{#Time createAt}}</div>
    </div>
  </div>
  {{/each}}

</div>